package com.its.gym.exception;

import lombok.Data;

/*
* 自定义业务处理异常类
* */
@Data
public class BusException extends  RuntimeException{
    private Integer code;
    private String message;
    //重写构造方法
    public BusException(Integer code, String message) {
        super(message);
        this.code=code;
        this.message=message;
    }
    public BusException() {
        super();
    }
    public BusException(String message) {
        super(message);
    }


}
